package com.oop.ch10;

public class User {
	private Integer id;//int默认0
	private String name;
	private String sex;
	private String mobile;
	private String password;
	
	private String birthday;
	
	private String regtime;
	
	private Integer age;
	
	@Override
	public String toString() {
		return "User{" + "id=" + id + ", name='" + name + '\'' + ", sex='" + sex + '\'' + ", mobile='" + mobile + '\'' + ", password='" + password + '\'' + ", birthday='" + birthday + '\'' + ", regtime='" + regtime + '\'' + ", age=" + age + '}';
	}
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getSex() {
		return sex;
	}
	
	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public Integer getAge() {
		return age;
	}
	
	public void setAge(Integer age) {
		this.age = age;
	}
	
	public String getMobile() {
		return mobile;
	}
	
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getBirthday() {
		return birthday;
	}
	
	public void setBirthday(String birthday) {
		this.birthday = birthday;
		//计算年龄属性
		this.age=10;
	}
	
	public String getRegtime() {
		return regtime;
	}
	
	public void setRegtime(String regtime) {
		this.regtime = regtime;
	}
}
